<html>
    <head></head>
    <body>
        <div id="number" style="font-family: monospace";>bbb</div>
        <script>
            let number = document.getElementById("number");
            number.innerHTML = getNumber();
            function getNumber(){
                str="";
                for(i=1;i<1000;i++){
                    str+=getDigit();
                    if(i%40==0){
                        str+="<br >"
                    }
                }
                return str;
          }
          function getDigit(){
                let random = Math.random();
                if(random<0.5){
                    return 0;
            }
            else{
                    return 1; 
                }
            }
          </script>
        </body>
</html>